client: don't send stray EOF chunk on connection timeout
authorJo-Philipp Wich <[email protected]>
Tue, 23 Jan 2024 08:48:35 +0000 (09:48 +0100)
committerJo-Philipp Wich <[email protected]>
Tue, 23 Jan 2024 08:48:35 +0000 (09:48 +0100)
commitb3e3c05d6781caa5db54fc9913772ddc1af2e045
treec96ae9facda9490bd85536df07eccc3e2f950b49
parent34a8a74dbdec3c0de38abc1b08f6a73c51263792
client: don't send stray EOF chunk on connection timeout

Ensure that any kind of chunk data is only sent when the client connection
is in the body data state in order to avoid sending superfluous `0\r\n\r\n`
chunks on closing idle connections.

Signed-off-by: Jo-Philipp Wich <[email protected]>
client.c
utils.c